﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 求四位数
{
    class Program
    {
        static void Main(string[] args)
        {
            System.Console.WriteLine("请输入一个千位数");
            int input =int.Parse(Console.ReadLine());
            int thousand = input / 1000;
            int handred = input % 1000 / 100;
            int decade = input % 100 / 10;
            int unit = input % 10;

            System.Console.WriteLine("千位为{0}，百位为{1}，十位为{2}，个位为{3}",thousand,handred,decade,unit);
            Console.ReadKey();

        }
    }
}
